package com.example.annotation.bean;

import android.util.Log;

import java.io.Serializable;

public class UserBean implements Serializable {
    // 注意:没有public【修饰状态】会报:java.lang.NoSuchFieldException
    private String name = "android 超级兵";

    public String length = "20";

    @Override
    public String toString() {
        return "UserBean{" +
                "name='" + name + '\'' +
                ", length='" + length + '\'' +
                '}';
    }

    public String test(String name,int age){
        Log.i("szjUserBean","name:"+name+"\tage:"+age);
        return "我是UserBeanTest的返回值";
    }

    private String test2(String name,int age){
        Log.i("szjUserBean","name2:"+name+"\tage2:"+age);
        return "我是UserBeanTest2的返回值";
    }
}
